This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Example Code ~Zach Lopresterakol 10.Nov.03 09:36 AM a Web browser Domino Server 6.0.1Windows 2000
Thks guys for all the useful tips :)
I use some code that I got of LDD to wait until the external batch file window looses focus.
This code definately worked but something recently has caused it to start executing in the server console???
If I run the agent manually then it executes successfully by running seperately in its own cmd window?
Now you can have a laugh at my 'simple' code....
RunApp:
Sub RunApp (program$)
structure:
start.cb = Len(start)
ret& = CreateProcessA(0&, program$, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, 0&, 0&, start, proc)
ret& = WaitForSingleObject(proc.hProcess, INFINITE)
ret& = CloseHandle(proc.hProcess)
End Sub
'Set current directory using UNC path so extractor can be run from clients
Chdrive "c"
Chdir "c:\utils\doti\extractor\src"
' taskId% = Shell("extractor.bat", 1)
Print " ******* Extractor Opened *********"
RunApp("c:\utils\doti\extractor\src\extractor.bat")
Print " ******* Extractor Closed *********"
qryediflag.SQL = "DELETE FROM XML_FLAG"
resultediflag.Execute
'Vaildation of xml document is performed from extractor program. Therefore the xml file is not created is not valid.
Print " ********** XML FILE Successfully Generated ******* "
End If